<template>
  <input type="text" ref="inpRef" />
</template>

<script setup>
import { onMounted, ref } from 'vue'

const inpRef = ref(null)

onMounted(() => {
  console.log(inpRef)
  inpRef.value.focus()
})
</script>
